<!DOCTYPE HTML>
<title>Canvas test: toDataURL.lowercase</title>
<!--[if IE]><script src="../excanvas/excanvas.js"></script><![endif]-->
<script src="../tests.js"></script>
<link rel="stylesheet" href="../tests.css">
<link rel="prev" href="toDataURL.unrecognised.html" title="toDataURL.unrecognised">
<link rel="next" href="toDataURL.arguments.1.html" title="toDataURL.arguments.1">
<body class="show_output">
<p>
 <a href="toDataURL.unrecognised.html" accesskey="p" title="[p] toDataURL.unrecognised">&lt;</a>
 <a href="index.html">[index]</a>
 <a href="toDataURL.arguments.1.html" accesskey="n" title="[n] toDataURL.arguments.1">&gt;</a>
<h1><a href="index.toDataURL.html">toDataURL</a>.lowercase</h1>
<p class="desc">toDataURL type is case-sensitive</p>
<div class="refs">References:
<ul>
<li><a href="spec.html#testrefs.toDataURL.lowercase">toDataURL.lowercase</a>
<li><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=401795">Bugzilla</a>
</ul>
</div>

<p class="output">Actual output:</p>
<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>

<ul id="d"></ul>
<script>
_addTest(function(canvas, ctx) {

var data = canvas.toDataURL('ImAgE/PnG');
_assertMatch(data, /^data:image\/png[;,]/, "data", "/^data:image\\/png[;,]/");


});
</script>

